import { ExtractPropTypes } from 'vue'

export type IButtonType = 'primary' | 'danger' | 'success' | 'info' | 'warning'

export const buttonProps = {
  type: {
    type: String,
    default: 'primary'
  },
  disabled: {
    type: Boolean,
    default: false
  },
  round: {
    type: Number
  },
  width: {
    type: Number
  },
  height: {
    type: Number
  }
}

export type ButtonProps = ExtractPropTypes<typeof buttonProps>

export const buttonEmit = ['click']

export type ButtonEmit = typeof buttonEmit
